package com.vistarsoft.action;

import javax.xml.registry.infomodel.User;

import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;
import org.springframework.beans.factory.annotation.Autowired;

import com.vistarsoft.common.StrutsAction;
import com.vistarsoft.service.impl.MemberService;

/**
 * 成员管理
 * @author terry
 */
@Results({@Result(name=StrutsAction.RELOAD,location=MemberAction.MEMBER_ACTION,type=StrutsAction.REDIRECT)})
public class MemberAction extends StrutsAction<User>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	public static final String MEMBER_ACTION = "member.action";
	private String memberName;
	
	@Autowired
	private MemberService memberService;
	
	/**
	 * 覆盖数据集显示回调函数
	 */
	@SuppressWarnings("unchecked")
	@Override
	protected void doListEntity() throws Exception {
		list = memberService.queryResult(getRequest());
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

}
